package com.system.common.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BisBagProjectExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BisBagProjectExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBagIdIsNull() {
            addCriterion("bag_id is null");
            return (Criteria) this;
        }

        public Criteria andBagIdIsNotNull() {
            addCriterion("bag_id is not null");
            return (Criteria) this;
        }

        public Criteria andBagIdEqualTo(String value) {
            addCriterion("bag_id =", value, "bagId");
            return (Criteria) this;
        }

        public Criteria andBagIdNotEqualTo(String value) {
            addCriterion("bag_id <>", value, "bagId");
            return (Criteria) this;
        }

        public Criteria andBagIdGreaterThan(String value) {
            addCriterion("bag_id >", value, "bagId");
            return (Criteria) this;
        }

        public Criteria andBagIdGreaterThanOrEqualTo(String value) {
            addCriterion("bag_id >=", value, "bagId");
            return (Criteria) this;
        }

        public Criteria andBagIdLessThan(String value) {
            addCriterion("bag_id <", value, "bagId");
            return (Criteria) this;
        }

        public Criteria andBagIdLessThanOrEqualTo(String value) {
            addCriterion("bag_id <=", value, "bagId");
            return (Criteria) this;
        }

        public Criteria andBagIdLike(String value) {
            addCriterion("bag_id like", value, "bagId");
            return (Criteria) this;
        }

        public Criteria andBagIdNotLike(String value) {
            addCriterion("bag_id not like", value, "bagId");
            return (Criteria) this;
        }

        public Criteria andBagIdIn(List<String> values) {
            addCriterion("bag_id in", values, "bagId");
            return (Criteria) this;
        }

        public Criteria andBagIdNotIn(List<String> values) {
            addCriterion("bag_id not in", values, "bagId");
            return (Criteria) this;
        }

        public Criteria andBagIdBetween(String value1, String value2) {
            addCriterion("bag_id between", value1, value2, "bagId");
            return (Criteria) this;
        }

        public Criteria andBagIdNotBetween(String value1, String value2) {
            addCriterion("bag_id not between", value1, value2, "bagId");
            return (Criteria) this;
        }

        public Criteria andProjectIdIsNull() {
            addCriterion("project_id is null");
            return (Criteria) this;
        }

        public Criteria andProjectIdIsNotNull() {
            addCriterion("project_id is not null");
            return (Criteria) this;
        }

        public Criteria andProjectIdEqualTo(String value) {
            addCriterion("project_id =", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotEqualTo(String value) {
            addCriterion("project_id <>", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThan(String value) {
            addCriterion("project_id >", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThanOrEqualTo(String value) {
            addCriterion("project_id >=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThan(String value) {
            addCriterion("project_id <", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThanOrEqualTo(String value) {
            addCriterion("project_id <=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLike(String value) {
            addCriterion("project_id like", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotLike(String value) {
            addCriterion("project_id not like", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdIn(List<String> values) {
            addCriterion("project_id in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotIn(List<String> values) {
            addCriterion("project_id not in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdBetween(String value1, String value2) {
            addCriterion("project_id between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotBetween(String value1, String value2) {
            addCriterion("project_id not between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectOldPriceIsNull() {
            addCriterion("project_old_price is null");
            return (Criteria) this;
        }

        public Criteria andProjectOldPriceIsNotNull() {
            addCriterion("project_old_price is not null");
            return (Criteria) this;
        }

        public Criteria andProjectOldPriceEqualTo(Double value) {
            addCriterion("project_old_price =", value, "projectOldPrice");
            return (Criteria) this;
        }

        public Criteria andProjectOldPriceNotEqualTo(Double value) {
            addCriterion("project_old_price <>", value, "projectOldPrice");
            return (Criteria) this;
        }

        public Criteria andProjectOldPriceGreaterThan(Double value) {
            addCriterion("project_old_price >", value, "projectOldPrice");
            return (Criteria) this;
        }

        public Criteria andProjectOldPriceGreaterThanOrEqualTo(Double value) {
            addCriterion("project_old_price >=", value, "projectOldPrice");
            return (Criteria) this;
        }

        public Criteria andProjectOldPriceLessThan(Double value) {
            addCriterion("project_old_price <", value, "projectOldPrice");
            return (Criteria) this;
        }

        public Criteria andProjectOldPriceLessThanOrEqualTo(Double value) {
            addCriterion("project_old_price <=", value, "projectOldPrice");
            return (Criteria) this;
        }

        public Criteria andProjectOldPriceIn(List<Double> values) {
            addCriterion("project_old_price in", values, "projectOldPrice");
            return (Criteria) this;
        }

        public Criteria andProjectOldPriceNotIn(List<Double> values) {
            addCriterion("project_old_price not in", values, "projectOldPrice");
            return (Criteria) this;
        }

        public Criteria andProjectOldPriceBetween(Double value1, Double value2) {
            addCriterion("project_old_price between", value1, value2, "projectOldPrice");
            return (Criteria) this;
        }

        public Criteria andProjectOldPriceNotBetween(Double value1, Double value2) {
            addCriterion("project_old_price not between", value1, value2, "projectOldPrice");
            return (Criteria) this;
        }

        public Criteria andProjectNewPriceIsNull() {
            addCriterion("project_new_price is null");
            return (Criteria) this;
        }

        public Criteria andProjectNewPriceIsNotNull() {
            addCriterion("project_new_price is not null");
            return (Criteria) this;
        }

        public Criteria andProjectNewPriceEqualTo(Double value) {
            addCriterion("project_new_price =", value, "projectNewPrice");
            return (Criteria) this;
        }

        public Criteria andProjectNewPriceNotEqualTo(Double value) {
            addCriterion("project_new_price <>", value, "projectNewPrice");
            return (Criteria) this;
        }

        public Criteria andProjectNewPriceGreaterThan(Double value) {
            addCriterion("project_new_price >", value, "projectNewPrice");
            return (Criteria) this;
        }

        public Criteria andProjectNewPriceGreaterThanOrEqualTo(Double value) {
            addCriterion("project_new_price >=", value, "projectNewPrice");
            return (Criteria) this;
        }

        public Criteria andProjectNewPriceLessThan(Double value) {
            addCriterion("project_new_price <", value, "projectNewPrice");
            return (Criteria) this;
        }

        public Criteria andProjectNewPriceLessThanOrEqualTo(Double value) {
            addCriterion("project_new_price <=", value, "projectNewPrice");
            return (Criteria) this;
        }

        public Criteria andProjectNewPriceIn(List<Double> values) {
            addCriterion("project_new_price in", values, "projectNewPrice");
            return (Criteria) this;
        }

        public Criteria andProjectNewPriceNotIn(List<Double> values) {
            addCriterion("project_new_price not in", values, "projectNewPrice");
            return (Criteria) this;
        }

        public Criteria andProjectNewPriceBetween(Double value1, Double value2) {
            addCriterion("project_new_price between", value1, value2, "projectNewPrice");
            return (Criteria) this;
        }

        public Criteria andProjectNewPriceNotBetween(Double value1, Double value2) {
            addCriterion("project_new_price not between", value1, value2, "projectNewPrice");
            return (Criteria) this;
        }

        public Criteria andProjectNumIsNull() {
            addCriterion("project_num is null");
            return (Criteria) this;
        }

        public Criteria andProjectNumIsNotNull() {
            addCriterion("project_num is not null");
            return (Criteria) this;
        }

        public Criteria andProjectNumEqualTo(Integer value) {
            addCriterion("project_num =", value, "projectNum");
            return (Criteria) this;
        }

        public Criteria andProjectNumNotEqualTo(Integer value) {
            addCriterion("project_num <>", value, "projectNum");
            return (Criteria) this;
        }

        public Criteria andProjectNumGreaterThan(Integer value) {
            addCriterion("project_num >", value, "projectNum");
            return (Criteria) this;
        }

        public Criteria andProjectNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("project_num >=", value, "projectNum");
            return (Criteria) this;
        }

        public Criteria andProjectNumLessThan(Integer value) {
            addCriterion("project_num <", value, "projectNum");
            return (Criteria) this;
        }

        public Criteria andProjectNumLessThanOrEqualTo(Integer value) {
            addCriterion("project_num <=", value, "projectNum");
            return (Criteria) this;
        }

        public Criteria andProjectNumIn(List<Integer> values) {
            addCriterion("project_num in", values, "projectNum");
            return (Criteria) this;
        }

        public Criteria andProjectNumNotIn(List<Integer> values) {
            addCriterion("project_num not in", values, "projectNum");
            return (Criteria) this;
        }

        public Criteria andProjectNumBetween(Integer value1, Integer value2) {
            addCriterion("project_num between", value1, value2, "projectNum");
            return (Criteria) this;
        }

        public Criteria andProjectNumNotBetween(Integer value1, Integer value2) {
            addCriterion("project_num not between", value1, value2, "projectNum");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIsNull() {
            addCriterion("create_user_id is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIsNotNull() {
            addCriterion("create_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdEqualTo(String value) {
            addCriterion("create_user_id =", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotEqualTo(String value) {
            addCriterion("create_user_id <>", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdGreaterThan(String value) {
            addCriterion("create_user_id >", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdGreaterThanOrEqualTo(String value) {
            addCriterion("create_user_id >=", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdLessThan(String value) {
            addCriterion("create_user_id <", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdLessThanOrEqualTo(String value) {
            addCriterion("create_user_id <=", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdLike(String value) {
            addCriterion("create_user_id like", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotLike(String value) {
            addCriterion("create_user_id not like", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIn(List<String> values) {
            addCriterion("create_user_id in", values, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotIn(List<String> values) {
            addCriterion("create_user_id not in", values, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdBetween(String value1, String value2) {
            addCriterion("create_user_id between", value1, value2, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotBetween(String value1, String value2) {
            addCriterion("create_user_id not between", value1, value2, "createUserId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}